<html>

<head>
<meta name=标题 content="">
<meta name=关键词 content="">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Courier New";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Times;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@DengXian";}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
	{font-family:"\@Microsoft YaHei";}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:12.0pt;
	font-family:DengXian;}
a:link, span.MsoHyperlink
	{color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:#954F72;
	text-decoration:underline;}
code
	{font-family:Courier;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.0pt;
	font-size:12.0pt;
	font-family:DengXian;}
p.a, li.a, div.a
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:200%;
	font-size:12.0pt;
	font-family:"Microsoft YaHei";}
.MsoChpDefault
	{font-family:DengXian;}
 /* Page Definitions */
@page WordSection1
	{size:595.0pt 842.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'>

<div class=WordSection1 style='layout-grid:15.6pt'>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-size:14.0pt;line-height:200%;font-family:"Microsoft YaHei"'>kill</span></b></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>kill</span><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>指令用来向指定的进程发送一个信号。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>此命令的适用范围：<span
lang=EN-US>RedHat</span>、<span lang=EN-US>RHEL</span>、<span lang=EN-US>Ubuntu</span>、<span
lang=EN-US>CentOS</span>、<span lang=EN-US>Fedora</span>。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
"Microsoft YaHei"'>、语法</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>kill  [-s sigspec | -n signum
| -sigspec]  [pid | jobspec] ...</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>kill  -l  [sigspec |
exit_status] </span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
"Microsoft YaHei"'>、选项列表</span></b></p>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>选项</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border:solid windowtext 1.0pt;
  border-left:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-s</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定信号名称，如果不指定信号名称，默认的是<span
  lang=EN-US>SIGTERM</span></span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-n</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定信号编号</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-l</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>列出信号</span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
"Microsoft YaHei"'>、返回值</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>如果成功的发送了一个信息，那么就返回真。如果出现了错误或者指定了无效的选项，那么久返回假。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>4</span></b><b><span style='font-family:
"Microsoft YaHei"'>、实例</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>1</span><span
style='font-family:"Microsoft YaHei"'>）查看信号列表 </span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ~]# <b>kill -l</b></span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 1) SIGHUP  2) SIGINT  3) SIGQUIT    4) SIGILL  5) SIGTRAP</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 6) SIGABRT    7) SIGBUS  8) SIGFPE  9) SIGKILL   10) SIGUSR1</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11) SIGSEGV   12) SIGUSR2   13) SIGPIPE   14) SIGALRM   15)
  SIGTERM</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>16) SIGSTKFLT 17) SIGCHLD   18) SIGCONT   19) SIGSTOP   20)
  SIGTSTP</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>21) SIGTTIN   22) SIGTTOU   23) SIGURG 24) SIGXCPU   25) SIGXFSZ</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>26) SIGVTALRM 27) SIGPROF   28) SIGWINCH  29) SIGIO  30) SIGPWR</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>31) SIGSYS 34) SIGRTMIN  35) SIGRTMIN+1    36) SIGRTMIN+2    37)
  SIGRTMIN+3</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>38) SIGRTMIN+4    39) SIGRTMIN+5    40) SIGRTMIN+6    41) SIGRTMIN+7    42)
  SIGRTMIN+8</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>43) SIGRTMIN+9    44) SIGRTMIN+10   45) SIGRTMIN+11   46)
  SIGRTMIN+12   47) SIGRTMIN+13</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>48) SIGRTMIN+14   49) SIGRTMIN+15   50) SIGRTMAX-14   51)
  SIGRTMAX-13   52) SIGRTMAX-12</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>53) SIGRTMAX-11   54) SIGRTMAX-10   55) SIGRTMAX-9    56)
  SIGRTMAX-8    57) SIGRTMAX-7</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>58) SIGRTMAX-6    59) SIGRTMAX-5    60) SIGRTMAX-4    61)
  SIGRTMAX-3    62) SIGRTMAX-2</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>63) SIGRTMAX-1    64) SIGRTMAX  </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>2</span><span
style='font-family:"Microsoft YaHei"'>）杀死进程</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ~]# <b>ps –a                      //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian;color:black'>查看活动进程</span></b></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>  PID TTY          TIME CMD</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 3629 pts/0    00:00:00 mysqld_safe</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 3737 pts/0    00:00:11 mysqld</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11092 pts/1    00:00:00 man</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11095 pts/1    00:00:00 sh</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11096 pts/1    00:00:00 sh</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11100 pts/1    00:00:00 less</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11602 pts/0    00:00:00 ps</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ~]# <b>kill -s SIGKILL 11100      //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian;color:black'>杀死进程</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11100</span></b></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>[root@localhost ~]# <b>ps –a                         //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian;color:black'>查看活动进程，已经杀死</span></b></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>  PID TTY          TIME CMD</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 3629 pts/0    00:00:00 mysqld_safe</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'> 3737 pts/0    00:00:11 mysqld</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>11603 pts/0    00:00:00 ps</span></code></p>
  <p class=MsoNormal style='line-height:200%;background:#E7E6E6'><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo;
  color:black'>&nbsp;</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     </span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal align=center style='text-align:center;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>Copyright@david 
zhytwj2018@163.com</span></p>

</div>

</body>

</html>
